# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-schedule
_pkgname=schedule
pkgver=1.2.2
pkgrel=3
pkgdesc='Job scheduling for humans.'
arch=('any')
url='https://pypi.org/project/schedule/#files'
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://github.com/dbader/schedule/archive/refs/tags/$pkgver.tar.gz")
sha512sums=('851b2affa4b04e4b080f87dafcc2cbb2807cdcb14232471ab1703950a27198d5fe9740d4adb52de38d271fc3b007d155a5e43225a10cdf010f7cff37c95e2e95')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

